﻿package mortal.game.scene3D.player.entity
{
    import Message.BroadCast.*;
    import mortal.game.cache.*;

    public class EntityStatus extends Object
    {
        public var isInGroup:Boolean = false;
        public var isInGuild:Boolean = false;
        public var isInFriend:Boolean = false;
        public var isAttackRole:Boolean = false;
        public var distance:Number = -1;
        public var isEnemy:Boolean = false;
        public var isInDisplayList:Boolean = false;
        public var isUpdate:Boolean = true;

        public function EntityStatus()
        {
            return;
        }// end function

        public function updateisInGroup(param1:SEntityInfo) : void
        {
            this.isInGroup = Cache.instance.group.entityIsInGroup(param1.entityId);
            return;
        }// end function

        public function clear() : void
        {
            this.isInGroup = false;
            this.isInGuild = false;
            this.isInFriend = false;
            this.isAttackRole = false;
            this.distance = -1;
            this.isEnemy = false;
            this.isInDisplayList = false;
            this.isUpdate = true;
            return;
        }// end function

    }
}
